@import './reset.css';
@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

/*----------------隐藏滚轮-----------------*/
.rightScrollNone::-webkit-scrollbar {
  display: none; /* Chrome Safari */
}

.rightScrollNone {
  scrollbar-width: none; /* firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-x: hidden;
  overflow-y: auto;
}
/*---------------------------------*/

/*----------------图片上传样式-----------------*/
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.my_plus {
  font-size: 28px;
  cursor: pointer;
  color: #2ea8e5;
  display: inline-block;
  position: relative;
  top: 5px;
  left: 5px;
}

.avatar-uploader .el-upload:hover {
  border-color: $--color-primary;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 120px;
  height: 120px;
  line-height: 120px;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  display: block;
}
/*---------------------------------*/

/*---------------抽屉样式------------------*/
.upload-file-title {
  border-left: 3px solid #2ea8e5;
  font-size: 14px;
  color: #606266;
  padding: 2px 8px;
  margin-bottom: 15px;
}
.ser-ev-per {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  height: 80px;
  padding: 5px 0;
}
.demo-drawer__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 20px 20px 20px;
}
.demo-drawer__content form {
  flex: 1;
}
.demo-drawer__footer {
  margin-top: 20px;
  display: flex;
}
.demo-drawer__footer button {
  flex: 1;
}
/*---------------------------------*/

/* 内容布局 */
.page-container {
  width: 100%;
  min-height: calc(100vh - 50px - 34px);
  background: $--color-bg;
  position: relative;
  padding-top: 10px;
  overflow: hidden;
}
.page-content {
  padding: 10px;
  padding-top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
}
.panel-container {
  width: 100%;
  background: #ffffff;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.panel-container.no-margin {
  margin-bottom: 0;
}

.panel-line {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  &.flex-end {
    justify-content: flex-end;
  }
  &.flex-center {
    justify-content: center;
  }
  &.space-between {
    justify-content: space-between;
  }
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-title {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #333333;
}
.panel-sub-title {
  font-size: 14px;
  margin-bottom: 20px;
  color: #333333;
}
.text-tip {
  font-size: 12px;
  color: #999999;
}
.text-link {
  color: #5db42c;
  &:hover {
    text-decoration: underline;
  }
}
.text-danger {
  color: $--color-danger !important;
}
.text-info {
  color: $--color-info !important;
}
.text-primary {
  color: $--color-primary !important;
}
.text-success {
  color: $--color-success !important;
}
.text-warning {
  color: $--color-warning !important;
}

.button-danger {
  color: $--color-danger !important;
}
.button-gray {
  color: $--color-info !important;
}
.link {
  color: $--color-link !important;
  cursor: pointer;
  text-decoration: underline;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -moz-appearance: textfield;
}
.flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  &.flex-end {
    justify-content: flex-end;
  }
  &.flex-center {
    justify-content: center;
  }
  &.space-between {
    justify-content: space-between;
  }
  &.flex-column {
    flex-direction: column;
  }
  &.flex-wrap {
    flex-wrap: wrap;
  }
  &.flex-1 {
    flex: 1;
  }
  &.flex-2 {
    flex: 2;
  }
  &.flex-3 {
    flex: 3;
  }
  &.flex-4 {
    flex: 4;
  }
}
